<%--

  auhtor:xuzm
  date:20180412

 --%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" %>
<link type="text/css" rel="stylesheet" href="css/business/businessMoney.css"/>
<div class="animated fadeInRight">
    <div class="wrapper wrapper-content ng-scope" ng-controller="businessMoneyInfoCtrl" >

        <div class="row">
            <div class="col-lg-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>商户余额：</h5>
                    </div>
                    <div id="businessMoneyID" class="ibox-content" >
                           <form id="businessMoneyForm" class="paddingLeft9" >
                            <div class="row">
                                <div class="col-sm-6 col-md-6 col-lg-1-5">
                                    <div class="form-group form-group-sm">
                                        <div class="input-group">
                                            <span class="input-group-addon">商户号：</span>
                                            <div uib-tooltip="可通过商户名称搜索商户号"
                                                 angucomplete-alt id="mer_id"
                                                 input-name="merId"
                                                 maxlength="10"
                                                 pause="100"
                                                 auto-match="true"
                                                 selected-object="selectedMerchant"
                                                 local-data="merchants"
                                                 search-fields="id,name"
                                                 title-field="id"
                                                 description-field="name"
                                                 minlength="0"
                                                 focus-first="true"
                                                 input-class="form-control form-control-small"
                                                 match-class="highlight"
                                                 placeholder = "必填" 
                                                 >
                                            </div>
                                        </div>
                                    </div>
                                </div>  
                                <div class="col-sm-2 col-md-2 col-lg-1">
                                    <div class="form-group form-group-sm">
                                        <div class="input-group">
                                             <button type="submit" id="queryBusinessMoneyID" class="btn btn-sm btn-w-m btn-primary pull-right general-btn">
                                                                                                                                                查询
                                           </button>       
                                        </div>
                                    </div>
                                </div> 
                                <div class="col-sm-6 col-md-6 col-lg-1 addPaddingLeft35">
                                    <div class="form-group form-group-sm">
                                        <div class="input-group">
                                            <button type="button" id="resetDataID" class="btn btn-sm btn-w-m btn-info general-btn" ng-click="resetForm()" >
                                                                                                                                             重置
                                             </button>      
                                        </div>
                                    </div>
                                </div> 
                               </div>  
                        </form>
	                    <div id="businessMoneyTB" class="table-responsive paddingTop33">
                            <table class="table table-condensed table-striped table-hover table-bordered">
                            </table>
                        </div>
                        <div id="promptNoneID" class="promptNone_style" >没有待统计的数据哦~</div>
                        
				       <div id="businessMoneyDetailsID" class="wrapper ng-scope displayStatus">
				        <div class="row">
				            <div class="col-lg-12">
				            <div class="ibox float-e-margins">
				
					        <div id="merUsableAmount" class="modifyLayOut mart_15 col-sm-4">
				            <div class="">
				                <h2 class="f14">可用资金</h2>
				            </div>
						            <div id="merUsableAmountInfo" class="table-responsive">
						            	<table align="center" class="table table-condensed table-striped table-hover table-bordered" >
						            	  <tr>
										    <td align="center" width="100px">期初余额</td>
										    <td align="center" width="100px">{{preUsableAmount}}</td>
										    <td align="center" width="100px">0</td>
										  </tr>
										  <tr>
										    <td align="center" width="100px">清算金额</td>
										    <td align="center" width="100px">{{settlePlusAmount}}</td>
										    <td align="center" width="100px">0</td>
										  </tr>
										  <tr>
										    <td align="center" width="100px">保证金调整</td>
										    <td align="center" width="100px">{{bondNoReleaseAmount}}</td>
										    <td align="center" width="100px">{{bondReleaseAmount}}</td>
										  </tr>
										  <tr>
										    <td align="center" width="100px">退款总额</td>
										    <td align="center" width="100px">0</td>
										    <td align="center" width="100px">{{refundPlusAmount}}</td>
										  </tr>
										  <tr style="word-wrap:break-word;">
										    <td align="center" width="100px">拒付总额</td>
										    <td align="center" width="100px">0</td>
										    <td align="center" width="100px">{{protestPlusAmount}}</td>
										  </tr>
										  <tr>
										    <td align="center" width="100px">拒付处理费</td>
										    <td align="center" width="100px">0</td>
										    <td align="center" width="100px">{{feePlusAmount}}</td>
										  </tr>
										  <tr>
										    <td align="center" width="100px">交易手续费</td>
										    <td align="center" width="100px">0</td>
										    <td align="center" width="100px">{{deductPlusAmount}}</td>
										  </tr>
										  <tr>
										    <td align="center" width="100px">归还手续费</td>
										    <td align="center" width="100px">{{returnDeductAmount}}</td>
										    <td align="center" width="100px">0</td>
										  </tr>
										  <tr>
										    <td align="center" width="100px">已提待审核金额</td>
										    <td align="center" width="100px">0</td>
										    <td align="center" width="100px">{{drawingNoAuditPlusAmount}}</td>
										  </tr>
										  <tr>
										    <td align="center" width="100px">已提金额</td>
										    <td align="center" width="100px">0</td>
										    <td align="center" width="100px">{{drawingAuditPlusAmount}}</td>
										  </tr>
										  <tr>
										    <td align="center" width="100px">其他费用</td>
										    <td align="center" width="100px">0</td>
										    <td align="center" width="100px">0</td>
										  </tr>
										  <tr>
										    <td align="center" width="100px">期末余额</td>
										    <td align="center" width="100px">{{finalUsableAmount}}</td>
										    <td align="center" width="100px">0</td>
										  </tr>
										</table>
						            </div>
						        </div>
					                        
					            <div id="merBondAmount" class="modifyLayOut mart_15 col-sm-4">
					            <div class="">
					                <h2 class="f14">保证金</h2>
					            </div>
					            
					            <div id="merBondAmountInfo" class="table-responsive">
					            	<table align="center" class="table table-condensed table-striped table-hover table-bordered" >
					            	  <tr>
									    <td align="center" width="100px">期初余额</td>
									    <td align="center" width="100px">{{preBondAmount}}</td>
									    <td align="center" width="100px">0</td>
									  </tr>
									  <tr>
									    <td align="center" width="100px">增加保证金</td>
									    <td align="center" width="100px">{{bondNoReleaseAmount}}</td>
									    <td align="center" width="100px">0</td>
									  </tr>
									  <tr>
									    <td align="center" width="100px">释放保证金</td>
									    <td align="center" width="100px">0</td>
									    <td align="center" width="100px">{{bondReleaseAmount}}</td>
									  </tr>
									  <tr>
									    <td align="center" width="100px">其他金额</td>
									    <td align="center" width="100px">0</td>
									    <td align="center" width="100px">0</td>
									  </tr>
									  <tr>
									    <td align="center" width="100px">期末余额</td>
									    <td align="center" width="100px">{{finalBondAmount}}</td>
									    <td align="center" width="100px">0</td>
									  </tr>
									</table>
					            </div>
					        </div>
					        <div id="merNoSettleAmount" class="modifyLayOut mart_15 col-sm-4">
					            <div class="">
					                <h2 class="f14">未清算金额</h2>
					            </div>
					            <div id="merNoSettleAmountInfo" class="table-responsive">
					            	<table align="center" class="table table-condensed table-striped table-hover table-bordered" >
					            	  <tr>
									    <td align="center" width="100px">期初余额</td>
									    <td align="center" width="100px">{{preDisabledAmount}}</td>
									    <td align="center" width="100px">0</td>
									  </tr>
									  <tr>
									    <td align="center" width="100px">留存交易金额</td>
									    <td align="center" width="100px">{{nosettlePlusAmount}}</td>
									    <td align="center" width="100px">0</td>
									  </tr>
									  <tr>
									    <td align="center" width="100px">清算金额</td>
									    <td align="center" width="100px">0</td>
									    <td align="center" width="100px">{{settlePlusAmount}}</td>
									  </tr>
									  <tr>
									    <td align="center" width="100px">其他金额</td>
									    <td align="center" width="100px">0</td>
									    <td align="center" width="100px">0</td>
									  </tr>
									  <tr>
									    <td align="center" width="100px">期末余额</td>
									    <td align="center" width="100px">{{finalNoSettleAmount}}</td>
									    <td align="center" width="100px">0</td>
									  </tr>
									</table>
					            </div>
						        </div>  
				                </div>
				                </div>
				            </div>
				        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="js/business/businessMoney.js"></script>